\hypertarget{xpushbuttonfunction_8h_source}{}\doxysection{xpushbuttonfunction.\+h}
\mbox{\hyperlink{xpushbuttonfunction_8h}{浏览该文件的文档.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{comment}{/******************************************************************************}}
\DoxyCodeLine{2 \textcolor{comment}{ * Copyright 2020-\/xxxx xxx Co., Ltd.}}
\DoxyCodeLine{3 \textcolor{comment}{ * All right reserved. See COPYRIGHT for detailed Information.}}
\DoxyCodeLine{4 \textcolor{comment}{ *}}
\DoxyCodeLine{5 \textcolor{comment}{ * @projectName   aaa}}
\DoxyCodeLine{6 \textcolor{comment}{ * @file          xpushbuttonfunction.h}}
\DoxyCodeLine{7 \textcolor{comment}{ * @brief         XXXX Function}}
\DoxyCodeLine{8 \textcolor{comment}{ *}}
\DoxyCodeLine{9 \textcolor{comment}{ * @author        Feng<2859352492@qq.com>}}
\DoxyCodeLine{10 \textcolor{comment}{ * @date          2022/01/17 13:57:15}}
\DoxyCodeLine{11 \textcolor{comment}{ * @history}}
\DoxyCodeLine{12 \textcolor{comment}{ *****************************************************************************/}}
\DoxyCodeLine{13 }
\DoxyCodeLine{14 \textcolor{preprocessor}{\#ifndef XPushButtonFunction\_H}}
\DoxyCodeLine{15 \textcolor{preprocessor}{\#define XPushButtonFunction\_H}}
\DoxyCodeLine{16 }
\DoxyCodeLine{17 \textcolor{preprocessor}{\#include <QWidget>}}
\DoxyCodeLine{18 \textcolor{preprocessor}{\#include <QPushButton>}}
\DoxyCodeLine{19 \textcolor{preprocessor}{\#include <QPainter>}}
\DoxyCodeLine{20 \textcolor{preprocessor}{\#include <QMouseEvent>}}
\DoxyCodeLine{21 \textcolor{preprocessor}{\#include <QApplication>}}
\DoxyCodeLine{22 \textcolor{comment}{//\#include <QColorDialog>}}
\DoxyCodeLine{23 }
\DoxyCodeLine{24 \textcolor{preprocessor}{\#include <QMap>}}
\DoxyCodeLine{25 \textcolor{preprocessor}{\#include <QThread>}}
\DoxyCodeLine{26 \textcolor{preprocessor}{\#include <QMutex>}}
\DoxyCodeLine{27 \textcolor{preprocessor}{\#include <QDebug>}}
\DoxyCodeLine{28 }
\DoxyCodeLine{29 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{xnamespace_8h}{xnamespace.h}}"{}}}
\DoxyCodeLine{30 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{xfunction_8h}{xfunction.h}}"{}}}
\DoxyCodeLine{31 }
\DoxyCodeLine{32 QT\_BEGIN\_NAMESPACE}
\DoxyCodeLine{33 }
\DoxyCodeLine{34 \textcolor{keyword}{class }\mbox{\hyperlink{class_x_push_button_function_worker}{XPushButtonFunctionWorker}};}
\DoxyCodeLine{35 \textcolor{keyword}{class }\mbox{\hyperlink{class_x_push_button_function_private}{XPushButtonFunctionPrivate}};}
\DoxyCodeLine{36 \textcolor{keyword}{class }\mbox{\hyperlink{class_x_push_button_function}{XPushButtonFunction}} : \textcolor{keyword}{public} QPushButton}
\DoxyCodeLine{37 \{}
\DoxyCodeLine{38     Q\_OBJECT}
\DoxyCodeLine{39 }
\DoxyCodeLine{40     Q\_PROPERTY(QColor \mbox{\hyperlink{class_x_push_button_function_a5d832818fae45cc041aeb82e708bf07b}{bgDefaultColor}} READ \mbox{\hyperlink{class_x_push_button_function_a98b0f6fbb52002abf3c9f0b4679a9d34}{getBgDefaultColor}} WRITE \mbox{\hyperlink{class_x_push_button_function_abfef88f09f2246648396f4c68ebe3455}{setBgDefaultColor}})}
\DoxyCodeLine{41     Q\_PROPERTY(QColor \mbox{\hyperlink{class_x_push_button_function_a04e160ea6f188313b4aa257802d10437}{bgHoverColor}} READ \mbox{\hyperlink{class_x_push_button_function_acf3714c553d9d96eba86ecf23abecf49}{getBgHoverColor}} WRITE \mbox{\hyperlink{class_x_push_button_function_a5f40b8e0d001b8cb18011c381446cf71}{setBgHoverColor}})}
\DoxyCodeLine{42     Q\_PROPERTY(QColor \mbox{\hyperlink{class_x_push_button_function_a44bc9ae53d6abaa988e035ebd732c7ea}{bgPressedColor}} READ \mbox{\hyperlink{class_x_push_button_function_a4412ccadcb4dcac2985504ff8d57a808}{getBgPressedColor}} WRITE \mbox{\hyperlink{class_x_push_button_function_a69f4044244cab382b87dfe21e1c16220}{setBgPressedColor}})}
\DoxyCodeLine{43 }
\DoxyCodeLine{44     Q\_PROPERTY(\textcolor{keywordtype}{bool} \mbox{\hyperlink{class_x_push_button_function_a35d6ac2144ee758b7b7030be2ee6e944}{displayEnable}} READ \mbox{\hyperlink{class_x_push_button_function_a52d4ae11886c7b71c15bd58f14082e4f}{getDisplayEnable}} WRITE \mbox{\hyperlink{class_x_push_button_function_aff4d6fa4988bd0c4cc6a4fa566a6f94a}{setDisplayEnable}})}
\DoxyCodeLine{45 }
\DoxyCodeLine{46 \textcolor{keyword}{public}:}
\DoxyCodeLine{47     \textcolor{keyword}{explicit} \mbox{\hyperlink{class_x_push_button_function_aeee4469c64ba20726102d918e97d77cd}{XPushButtonFunction}} (QWidget *parent = \textcolor{keyword}{nullptr});}
\DoxyCodeLine{48     \mbox{\hyperlink{class_x_push_button_function_ab17b9d1e733689bd31acec6a28f63808}{\string~XPushButtonFunction}} ();}
\DoxyCodeLine{49 }
\DoxyCodeLine{50     \textcolor{comment}{/* Property Interface */}}
\DoxyCodeLine{51     QColor \mbox{\hyperlink{class_x_push_button_function_a98b0f6fbb52002abf3c9f0b4679a9d34}{getBgDefaultColor}}() \textcolor{keyword}{const};}
\DoxyCodeLine{52     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_abfef88f09f2246648396f4c68ebe3455}{setBgDefaultColor}}(QColor \&bgcol);}
\DoxyCodeLine{53 }
\DoxyCodeLine{54     QColor \mbox{\hyperlink{class_x_push_button_function_acf3714c553d9d96eba86ecf23abecf49}{getBgHoverColor}}() \textcolor{keyword}{const};}
\DoxyCodeLine{55     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_a5f40b8e0d001b8cb18011c381446cf71}{setBgHoverColor}}(QColor \&bgcol);}
\DoxyCodeLine{56 }
\DoxyCodeLine{57     QColor \mbox{\hyperlink{class_x_push_button_function_a4412ccadcb4dcac2985504ff8d57a808}{getBgPressedColor}}() \textcolor{keyword}{const};}
\DoxyCodeLine{58     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_a69f4044244cab382b87dfe21e1c16220}{setBgPressedColor}}(QColor \&bgcol);}
\DoxyCodeLine{59 }
\DoxyCodeLine{60     \textcolor{keywordtype}{bool} \mbox{\hyperlink{class_x_push_button_function_a52d4ae11886c7b71c15bd58f14082e4f}{getDisplayEnable}}() \textcolor{keyword}{const};}
\DoxyCodeLine{61     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_aff4d6fa4988bd0c4cc6a4fa566a6f94a}{setDisplayEnable}}(\textcolor{keywordtype}{bool});}
\DoxyCodeLine{62 }
\DoxyCodeLine{63     \textcolor{comment}{/* Other Interface */}}
\DoxyCodeLine{64     \textcolor{keywordtype}{bool} \mbox{\hyperlink{class_x_push_button_function_a19bbd1575b8fbab08bdbd69b085ee06c}{getPushButtonBoolStatus}}() \textcolor{keyword}{const};}
\DoxyCodeLine{65 }
\DoxyCodeLine{66     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_a6d6ce5ccf7a28cc08a71af08ca36b90b}{insertFunction}}(\textcolor{keyword}{const} \mbox{\hyperlink{class_x_type_a3b2ee81c4e40b1984de53e4eb1d90023}{XType::PushButtonStatus}} status, \mbox{\hyperlink{class_x_function}{XFunction}} \&xFunction, \mbox{\hyperlink{xfunction_8h_afef433ae7eaa4880713115352c9e3718}{Function}} \&function);}
\DoxyCodeLine{67     \textcolor{keywordtype}{bool} \mbox{\hyperlink{class_x_push_button_function_ae2fb985f95c4d362b87c77a543ef6c56}{deleteFunction}}(\textcolor{keyword}{const} \mbox{\hyperlink{class_x_type_a3b2ee81c4e40b1984de53e4eb1d90023}{XType::PushButtonStatus}} status, \textcolor{keyword}{const} \textcolor{keywordtype}{int} index);}
\DoxyCodeLine{68 \textcolor{comment}{//    void moveUpFunction(const XType::PushButtonStatus status, const int index);}}
\DoxyCodeLine{69 \textcolor{comment}{//    void moveDownFunction(const XType::PushButtonStatus status, const int index);}}
\DoxyCodeLine{70 }
\DoxyCodeLine{71     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_a1b982565dc4f88af5d4d94823f1df1b0}{traversalPressInstanceMap}}();}
\DoxyCodeLine{72     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_a9bdd78590e989227d2a8733c7f852839}{traversalPressStatusMap}}();}
\DoxyCodeLine{73     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_ab38fec60591d5f59393ebc4fc7806b0a}{traversalReleaseInstanceMap}}();}
\DoxyCodeLine{74     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_a1a840bf108be92085136f00f88d9f647}{traversalReleaseStatusMap}}();}
\DoxyCodeLine{75 }
\DoxyCodeLine{76     QString \mbox{\hyperlink{class_x_push_button_function_adb33f159d6433ae0cd92c9ccf48e4ab7}{ColorConvertToString}}(\textcolor{keyword}{const} QColor \&color, \textcolor{keyword}{const} QString type);}
\DoxyCodeLine{77 }
\DoxyCodeLine{78 \textcolor{keyword}{protected}:}
\DoxyCodeLine{79     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_a285e4ef51c2f201fd1d7e23e46a07431}{paintEvent}}(QPaintEvent *ev) \textcolor{keyword}{override};}
\DoxyCodeLine{80 }
\DoxyCodeLine{81     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_a40ae617de2f37aef945f217f3b5f2576}{enterEvent}}(QEvent *ev) \textcolor{keyword}{override};}
\DoxyCodeLine{82     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_a7a0a959b56d46a4381e178f9dba08dfe}{leaveEvent}}(QEvent *ev) \textcolor{keyword}{override};}
\DoxyCodeLine{83     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_adb20c5ec53710db19fd33f46a8404712}{mousePressEvent}}(QMouseEvent *ev) \textcolor{keyword}{override};}
\DoxyCodeLine{84     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_a81621c11e7a9214627df2e2c72d9e875}{mouseReleaseEvent}}(QMouseEvent *ev) \textcolor{keyword}{override};}
\DoxyCodeLine{85     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_push_button_function_a43ad5ccc4d68da890410452092a4792d}{mouseMoveEvent}}(QMouseEvent *ev) \textcolor{keyword}{override};}
\DoxyCodeLine{86 }
\DoxyCodeLine{87 \textcolor{keyword}{private}:}
\DoxyCodeLine{88     Q\_DISABLE\_COPY(\mbox{\hyperlink{class_x_push_button_function}{XPushButtonFunction}})}
\DoxyCodeLine{89     \mbox{\hyperlink{class_x_push_button_function_private}{XPushButtonFunctionPrivate}} *\mbox{\hyperlink{class_x_push_button_function_abc84043ed8534e01d989ab65806f4046}{d}};}
\DoxyCodeLine{90 }
\DoxyCodeLine{91     QMutex \mbox{\hyperlink{class_x_push_button_function_aeff7838d2da18f17e08c69b46f41c95a}{mutex}};}
\DoxyCodeLine{92     \mbox{\hyperlink{class_x_push_button_function_worker}{XPushButtonFunctionWorker}} *\mbox{\hyperlink{class_x_push_button_function_a79a2057ba68da576f0369573e415ce6a}{worker}};}
\DoxyCodeLine{93     QThread *\mbox{\hyperlink{class_x_push_button_function_a53cda5f9e47a618b114f5b36181f2b60}{workerThread}};}
\DoxyCodeLine{94 }
\DoxyCodeLine{95     QMap<\textcolor{keywordtype}{int}, \mbox{\hyperlink{class_x_function}{XFunction}}> \mbox{\hyperlink{class_x_push_button_function_a9c6b8b45ffdda8456b4d1e645d5c4952}{pressInstanceXFunctionMap}};}
\DoxyCodeLine{96     QMap<\textcolor{keywordtype}{int}, \mbox{\hyperlink{xfunction_8h_afef433ae7eaa4880713115352c9e3718}{Function}}> \mbox{\hyperlink{class_x_push_button_function_a09d279e3cdcd5320fb7df6b6d2958edd}{pressInstanceFunctionMap}};}
\DoxyCodeLine{97 }
\DoxyCodeLine{98     QMap<\textcolor{keywordtype}{int}, \mbox{\hyperlink{class_x_function}{XFunction}}> \mbox{\hyperlink{class_x_push_button_function_a575fdd05b81df87f1c8b6cfb536c167b}{pressStatusXFunctionMap}};}
\DoxyCodeLine{99     QMap<\textcolor{keywordtype}{int}, \mbox{\hyperlink{xfunction_8h_afef433ae7eaa4880713115352c9e3718}{Function}}> \mbox{\hyperlink{class_x_push_button_function_a7f867ac304fe39e046141e0e04edb700}{pressStatusFunctionMap}};}
\DoxyCodeLine{100 }
\DoxyCodeLine{101     QMap<\textcolor{keywordtype}{int}, \mbox{\hyperlink{class_x_function}{XFunction}}> \mbox{\hyperlink{class_x_push_button_function_acf9ff28b84edb9fc9ff0c04857a03d65}{releaseInstanceXFunctionMap}};}
\DoxyCodeLine{102     QMap<\textcolor{keywordtype}{int}, \mbox{\hyperlink{xfunction_8h_afef433ae7eaa4880713115352c9e3718}{Function}}> \mbox{\hyperlink{class_x_push_button_function_ad8890c4ed4f3c9d486dc5072df5b024b}{releaseInstanceFunctionMap}};}
\DoxyCodeLine{103 }
\DoxyCodeLine{104     QMap<\textcolor{keywordtype}{int}, \mbox{\hyperlink{class_x_function}{XFunction}}> \mbox{\hyperlink{class_x_push_button_function_ad90d47222be3047d6d3bdc0a4ef4fb4a}{releaseStatusXFunctionMap}};}
\DoxyCodeLine{105     QMap<\textcolor{keywordtype}{int}, \mbox{\hyperlink{xfunction_8h_afef433ae7eaa4880713115352c9e3718}{Function}}> \mbox{\hyperlink{class_x_push_button_function_a0c4e9520198895184be3ca9f58043931}{releaseStatusFunctionMap}};}
\DoxyCodeLine{106 \};}
\DoxyCodeLine{107 }
\DoxyCodeLine{108 class \mbox{\hyperlink{class_x_push_button_function_worker}{XPushButtonFunctionWorker}} : public QObject}
\DoxyCodeLine{109 \{}
\DoxyCodeLine{110     Q\_OBJECT}
\DoxyCodeLine{111 \textcolor{keyword}{public}:}
\DoxyCodeLine{112     \mbox{\hyperlink{class_x_push_button_function_worker}{XPushButtonFunctionWorker}}(\mbox{\hyperlink{class_x_push_button_function}{XPushButtonFunction}} *parent);}
\DoxyCodeLine{113 }
\DoxyCodeLine{114 \textcolor{keyword}{public} slots:}
\DoxyCodeLine{115     \textcolor{keywordtype}{void} doWork();}
\DoxyCodeLine{116     \textcolor{keywordtype}{void} stop();}
\DoxyCodeLine{117 }
\DoxyCodeLine{118 \textcolor{keyword}{private}:}
\DoxyCodeLine{119     \mbox{\hyperlink{class_x_push_button_function}{XPushButtonFunction}} *\mbox{\hyperlink{class_x_push_button_function_worker_ae387dc32ad56a0472e06a1d768cd7ab2}{pushButtonFunction}};}
\DoxyCodeLine{120 }
\DoxyCodeLine{121     QMutex \mbox{\hyperlink{class_x_push_button_function_worker_ab492b285fcae0fb48c2ebed95cb4e9aa}{mutex}};}
\DoxyCodeLine{122     \textcolor{keywordtype}{bool} \mbox{\hyperlink{class_x_push_button_function_worker_a256219ddb01648151a7b75dfd020c4a2}{isStop}};}
\DoxyCodeLine{123 \};}
\DoxyCodeLine{124 }
\DoxyCodeLine{125 QT\_END\_NAMESPACE}
\DoxyCodeLine{126 }
\DoxyCodeLine{127 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// ZHUANDAXI\_H}}

\end{DoxyCode}
